package com.huangwei.model;

import java.util.Date;

public class Orders {
    private Integer orderId;
    private Integer bookDay;
    private Date bookDate;
    private Double cost;
    private Double avgCost;
    private OrderState orderState;
    private User user;
    private Car car;

    @Override
    public String toString() {
        return "Orders{" +
                "orderId=" + orderId +
                ", bookDay=" + bookDay +
                ", bookDate=" + bookDate +
                ", cost=" + cost +
                ", avgCost=" + avgCost +
                ", orderState=" + orderState +
                ", user=" + user +
                ", car=" + car +
                '}';
    }

    public Orders(Integer orderId, Integer bookDay,
                  Date bookDate, Double cost,
                  Double avgCost, OrderState orderState,
                  User user, Car car) {
        this.orderId = orderId;
        this.bookDay = bookDay;
        this.bookDate = bookDate;
        this.cost = cost;
        this.avgCost = avgCost;
        this.orderState = orderState;
        this.user = user;
        this.car = car;
    }

    public Orders() {
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getBookDay() {
        return bookDay;
    }

    public void setBookDay(Integer bookDay) {
        this.bookDay = bookDay;
    }

    public Date getBookDate() {
        return bookDate;
    }

    public void setBookDate(Date bookDate) {
        this.bookDate = bookDate;
    }

    public Double getCost() {
        return cost;
    }

    public void setCost(Double cost) {
        this.cost = cost;
    }

    public Double getAvgCost() {
        return avgCost;
    }

    public void setAvgCost(Double avgCost) {
        this.avgCost = avgCost;
    }

    public OrderState getOrderState() {
        return orderState;
    }

    public void setOrderState(OrderState orderState) {
        this.orderState = orderState;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Car getCar() {
        return car;
    }

    public void setCar(Car car) {
        this.car = car;
    }
}
